solving rational equations